# 循环次数由用户控制
import turtle

t = turtle.Pen()
t.pencolor("red")

number = int(turtle.numinput("循环次数", "请输入循环次数", 10))

for i in range(number):
    t.circle(30)
    t.left(360/number)

turtle.mainloop()